package net.sourceforge.j2meautonetwork.util;

/**
 * 资源与常量定义
 * @author Steven King(woyaoying@hotmail.com)
 * @version 0.1
*/
public class CodeDefine {

    public static final String[] HTTP_USER_AGENT = { "User-Agent", "Nokia7610" };

    public static final String[] HTTP_ACCEPT = { "Accept", "*/*" };

    public static final String HTTP_PROXY_HOST_HEADER = "X-Online-Host";

    public static final boolean ISWAP = false;
    /**
     * 网络错误信息定义.
     */
    public static final String[] NETWORK_ERRORS = {"您没有同意连接网络,请重新启动程序后选择连接网络!", "网络连接超时，请重试!", "网络连接错误."};

    /**
     * 网络连接成功.
     */
    public static final String NETWORK_CONNECT_SUCCESSFUL = "连接成功! 当前用户的连接方式: {network}";

    /**
     * 网络连接超时时间.
     */
    public static final long HTTP_CONNECT_TIME_OUT = 60000;

    public static final String TEST_FORM_TITLE_LABLE = "网络自动测试程序";

    public static final String TEST_FORM_PAGE_CONTENT = "请选择测试后，程序将开始连接网络，默认超时时间为" + (HTTP_CONNECT_TIME_OUT / 1000) + "秒。您可以修改，超时后将尝试其他的连接方式。";

    public static final String TEST_COMMAND_LABLE = "测试";

    public static final String EXIT_COMMAND_LABLE = "退出";

    public static final String BACK_COMMAND_LABLE = "返回";
    
    public static final String CANCEL_COMMAND_LABLE = "取消";

    public static final String TEST_LOG_FORM_TITLE_LABLE = "测试日志";

}
